<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title>Swiper demo</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">

    <!-- Link Swiper's CSS -->
    <link rel="stylesheet" href="./swiper/swiper.min.css">

    <!-- Demo styles -->
    <style>
        html,
        body {
            position: relative;
            height: 100%;
        }

        body {
            background: #fff;
            font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
            font-size: 14px;
            color: #000;
            margin: 0;
            padding: 0;
        }

        .swiper-container {
            width: 796px;
            height: 326px;
            position: absolute;
            left: 50%;
            top: 0;
            transform: translateX(-50%);
        }

        .swiper-slide {
            background-position: center;
            background-size: cover;
        }
    </style>
</head>

<body>
    <!-- Swiper -->
    <div class="swiper-container">
        <div class="swiper-wrapper">
            <div class="swiper-slide" style="background-image:url(imgs/01.jpg)"></div>
            <div class="swiper-slide" style="background-image:url(imgs/02.jpg)"></div>
            <div class="swiper-slide" style="background-image:url(imgs/03.jpg)"></div>
            <div class="swiper-slide" style="background-image:url(imgs/04.jpg)"></div>
            <div class="swiper-slide" style="background-image:url(imgs/05.jpg)"></div>
        </div>
        <!-- Add Pagination -->
        <div class="swiper-pagination"></div>
    </div>
    <!-- Swiper JS -->
    <script src="./swiper/swiper.min.js"></script>
    <!-- Initialize Swiper -->
    <script>
        var swiper = new Swiper('.swiper-container', {
            // 分页器
            pagination: '.swiper-pagination',
            // 切换特效
            effect: 'cube',
            // 设置鼠标指针的外观
            grabCursor: true,
            // 立方体的配置
            cube: {
                // 阴影
                shadow: true,
                slideShadows: true,
                // 阴影的偏移
                shadowOffset: 100,
                // 阴影的缩放比例
                shadowScale: 0.94
            },
            loop: true,
            autoplay: 1500
        });
    </script>
</body>

</html>